CODE FOR ARDUINO - BOXING SIM 6000 const int buttonPin1 = 2; // First button connected to pin 2 const int ledPin1 = 8; // First LED connected to pin 8 const int buttonPin2 = 3; // Second button connected to pin 3 const int ledPin2 = 9; // Second LED connected to pin 9 const int footButtonPin = 4; // Foot button connected to pin 4 const int buzzerPin = 10; // Buzzer connected to pin 10 int buttonState1 = 0; // Variable to store first button state int buttonState2 = 0; // Variable to store second button state int footButtonState = 0; // Variable to store foot button state void setup() { pinMode(buttonPin1, INPUT_PULLUP); // Use internal pull-up resistor for first button pinMode(ledPin1, OUTPUT); // First LED set as output pinMode(buttonPin2, INPUT_PULLUP); // Use internal pull-up resistor for second button pinMode(ledPin2, OUTPUT); // Second LED set as output pinMode(footButtonPin, INPUT_PULLUP); // Use internal pull-up resistor for foot button pinMode(buzzerPin, OUTPUT); // Buzzer set as output } void loop() { // Read the state of the first and second buttons buttonState1 = digitalRead(buttonPin1); buttonState2 = digitalRead(buttonPin2); // Read the state of the foot button footButtonState = digitalRead(footButtonPin); // Control first LED if (buttonState1 == LOW) { // First button pressed digitalWrite(ledPin1, HIGH); // Turn on first LED } else { digitalWrite(ledPin1, LOW); // Turn off first LED } // Control second LED if (buttonState2 == LOW) { // Second button pressed digitalWrite(ledPin2, HIGH); // Turn on second LED } else { digitalWrite(ledPin2, LOW); // Turn off second LED } // Control buzzer for the foot button if (footButtonState == LOW) { // Foot button pressed digitalWrite(buzzerPin, HIGH); // Turn on buzzer delay(100); // Keep the buzzer on for 100ms digitalWrite(buzzerPin, LOW); // Turn off buzzer } }